package org.jeecg.modules.demo.com.kunpeng.mapper;

import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.com.kunpeng.entity.CommodityBrand;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.demo.com.kunpeng.vo.CommodityBrandQueryListVO;
import org.springframework.stereotype.Repository;

/**
 * @Description: 商品品牌
 * @Author: jeecg-boot
 * @Date:   2023-01-12
 * @Version: V1.0
 */
@Repository
public interface CommodityBrandMapper extends BaseMapper<CommodityBrand> {

    /**
     * 按品牌名称模糊查询
     */
    List<CommodityBrandQueryListVO> queryListByBrand(Page<CommodityBrandQueryListVO>page,@Param("brand")String brand);

    /**
     * 按品牌名称模糊查询显示全部
     */
    List<CommodityBrandQueryListVO> queryListByBrandAll(Page<CommodityBrandQueryListVO>page,@Param("brand")String brand);

    /**
     * 启用商品品牌
     */
    int enableBrand(String id);

    /**
     * 禁用商品品牌
     */
    int unEnableBrand(String id);

    /**
     * 根据品牌名称查询
     */
    List<CommodityBrand> queryListByBrandName(String brandName);
}
